home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!pipeline!not-for-mail
- From: johndill@nyc.pipeline.com (John Dillworth)
- Newsgroups: comp.lang.c
- Subject: C prog needs help with win 3.1
- Date: 27 Feb 1996 18:27:15 -0500
- Organization: The Pipeline
- Message-ID: <4h040j$23v@pipe11.nyc.pipeline.com>
- NNTP-Posting-Host: pipe11.nyc.pipeline.com
- X-PipeUser: johndill
- X-PipeHub: nyc.pipeline.com
- X-PipeGCOS: (John Dillworth)
- X-Newsreader: The Pipeline v3.4.0
-
- I need to insert a blank line between each printed line of text in this
- Windows program fragment:
-
-
- for (i = nPaintBeg ; i < nPaintEnd ; i++)
- {
-
-
-
- x = cxChar * (1 - nHscrollPos) ;
- y = cyChar * (1 - nVscrollPos + i) ;
-
- TextOut (hdc, x, y,
- sysmetrics[i].szLabel,
- lstrlen (sysmetrics[i].szLabel)) ;
-
- TextOut (hdc, x + 22 * cxCaps, y,
- sysmetrics[i].szDesc,
- lstrlen (sysmetrics[i].szDesc)) ;
-
- TextOut (hdc, x, y,
- sysmetrics[i].szLabel,
- lstrlen (sysmetrics[i].szLabel)) ;
-
- TextOut (hdc, x + 22 * cxCaps, y,
- sysmetrics[i].szDesc,
- lstrlen (sysmetrics[i].szDesc)) ;
-
-
- SetTextAlign (hdc, TA_RIGHT | TA_TOP) ;
-
- TextOut (hdc, x + 22 * cxCaps + 40 * cxChar, y,
- szBuffer,
- wsprintf (szBuffer, "%5d",
- GetSystemMetrics (sysmetrics[i].nIndex))) ;
-
- SetTextAlign (hdc, TA_LEFT | TA_TOP) ;
- // wsprintf (szBuffer, "/n/a" );
-
- }
- Now in C I plain old ANSI C I would just put a couple of printf's with
- newline characters. This dosn't work with windows (this is c huh?? ;-) ).
- How do I insert blank line between each line of text in this program?
-
- Thanks in advance
-